//
//  HNineCollectionViewCell.m
//  ETONEPay
//
//  Created by Zhang on 17/5/9.
//  Copyright © 2017年 Landicorp. All rights reserved.
//

#import "HNineCollectionViewCell.h"
#import <Masonry.h>
@implementation HNineCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupViews];
    }
    return self;
}
-(void)setupViews
{
    self.imageView = [[UIImageView alloc] init];
    [self.imageView setContentMode:UIViewContentModeScaleToFill];
    [self.contentView addSubview:self.imageView];
    [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.centerY.equalTo(self);
        make.width.equalTo(self);
        make.height.equalTo(self);
    }];
    
    self.titleLab = [[UILabel alloc] init];
    self.titleLab.textColor = [UIColor colorWithRed:51 / 255.0 green:51 / 255.0 blue:51 / 255.0 alpha:1];
    self.titleLab.font = [UIFont boldSystemFontOfSize:24];
    [self.contentView addSubview:self.titleLab];
    self.titleLab.textAlignment = NSTextAlignmentCenter;
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.centerY.equalTo(self);
        make.width.equalTo(self);
        make.height.equalTo(self);
    }];
}

@end
